//
//  FiveCell.m
//  WE
//
//  Created by 要帅气的生活 on 15/11/18.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "FiveCell.h"
#import "Size.h"

@interface FiveCell ()

@property (nonatomic,strong) UIView *xian;

@end

@implementation FiveCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        _img = [UIImageView new];
        [self.contentView addSubview:_img];
        _title = [UILabel new];
        [self.contentView addSubview:_title];
        _neirong = [UILabel new];
        [self.contentView addSubview:_neirong];
        _xian = [UIView new];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    _img.frame = CGRectMake(10, 10, self.frame.size.height, self.frame.size.height-20);
    _img.layer.cornerRadius = 4;
    //_img.layer.
    _title.frame = CGRectMake(self.frame.size.height+18, 10, self.frame.size.width-self.frame.size.height-18, (self.frame.size.height-20)/2);
    _title.numberOfLines = 0;
    //_title.font = [UIFont systemFontOfSize:15];
    _neirong.frame = CGRectMake(self.frame.size.height+18, (self.frame.size.height+20)/5*2, self.frame.size.width-self.frame.size.height-28, self.frame.size.height/20*7);
    //_neirong.font = [UIFont systemFontOfSize:13];
    _neirong.alpha = 0.4;
    _neirong.numberOfLines = 0;
    if (WindowWidth < 375) {
        _title.font = [UIFont systemFontOfSize:14];
        _neirong.font = [UIFont systemFontOfSize:12];
    }else{
        _title.font = [UIFont systemFontOfSize:15];
        _neirong.font = [UIFont systemFontOfSize:13];
    }
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
